//
//  HXinfoViewController.m
//  Number To English
//
//  Created by 朱志雄 on 2024/7/24.
//
#define STATE_BAR_HEIGHT [UIApplication sharedApplication].statusBarFrame.size.height
#define FIT_WIDTH   [UIScreen mainScreen].bounds.size.width/375
#define FIT_HEIGHT  [UIScreen mainScreen].bounds.size.height/667
#define KScreen_W  [UIScreen mainScreen].bounds.size.width
#define KScreen_H  [UIScreen mainScreen].bounds.size.height
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#import "HXinfoViewController.h"

@interface HXinfoViewController ()

@end

@implementation HXinfoViewController


- (void)viewDidLoad {
    [super viewDidLoad];
//    @"PingFangSC-Regular"
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIImageView *backView = [[UIImageView alloc] initWithFrame:self.view.bounds];
    backView.contentMode = UIViewContentModeScaleAspectFill;
    backView.image = [UIImage imageNamed:@"backimage"];
    [self.view addSubview:backView];
    
    
    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [backBtn addTarget:self action:@selector(backBtnClick) forControlEvents:UIControlEventTouchUpInside];
    backBtn.frame = CGRectMake(10,STATE_BAR_HEIGHT + 10,36, 36);
    [backBtn setImage:[UIImage imageNamed:@"返回"] forState:UIControlStateNormal];
    [self.view addSubview:backBtn];
    
    
    UILabel *titleL = [[UILabel alloc] initWithFrame:CGRectMake(0, STATE_BAR_HEIGHT + 10, KScreen_W, 36)];
    titleL.text = @"about Us";
    titleL.font = [UIFont fontWithName:@"PingFangSC-Regular" size:20];
    titleL.numberOfLines = 0;
    titleL.textAlignment = NSTextAlignmentCenter;
    titleL.textColor = [UIColor whiteColor];
    [self.view addSubview:titleL];
    
    
    UILabel *innerL = [[UILabel alloc] initWithFrame:CGRectMake(18, STATE_BAR_HEIGHT + 40, KScreen_W - 36, 360)];
    innerL.text = @"This is an app that can convert the numbers you input into English. For people learning English, this is also an excellent opportunity to exercise and improve their language skills. Through continuous practice and application, they can better grasp the expression of English numbers, laying a solid foundation for future language learning and communication.";
    innerL.font = [UIFont fontWithName:@"PingFangSC-Regular" size:20];
    innerL.numberOfLines = 0;
    innerL.textColor = [UIColor whiteColor];
    [self.view addSubview:innerL];
}

-(void)backBtnClick{
    [self.navigationController popViewControllerAnimated:YES];
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    self.navigationController.navigationBarHidden = YES;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
